package picounit;

import picounit.loader.ImplementationLoader;
import junit.framework.Test;

public class PicoUnit {
    public static Test generateTestSuite() {
        return loadImplementation().generateTestSuite();
    }

    public static Test generateTestSuite(Class<?> caller) {
        return loadImplementation().generateTestSuite(caller);
    }

    ////////////////////////////////////////////////////////////////

    private static API loadImplementation() {
        return new ImplementationLoader("/picounit.properties").load(API.class);
    }
}